from rest_framework import serializers
from goods.models import Brand

#1, brand序列化器
class BrandSerializers(serializers.ModelSerializer):

    # 1,重写group,category,group_id,category_id
    logo = serializers.ImageField()

    class Meta:
        model = Brand
        fields = '__all__'